<template>
  <div id="app">
    <Header v-if="showHeader"></Header>
    <router-view/>
    <Footer v-if="showHeader"></Footer>
    <GoTop></GoTop>
  </div>
</template>

<script>
export default {
  name: 'App',
  computed: {
    showHeader() {
      return this.$store.state.path !== '/login' && this.$store.state.path !== '/register'
    }
  }
}
</script>

<style>
  .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .page-header .page-title {
    color: #333333;
    font-size: 36px;
  }
  .page-header .page-extend {
    display: flex;
  }
</style>
